Class: GOBL::Envelope

Inherits:
Object show all
Includes:
GOBL::Extensions::EnvelopeHelper
Defined in:
lib/generated/gobl/envelope.rb

Overview

Envelope wraps around a document adding headers and digital signatures.

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL Envelope structure

'https://gobl.org/draft-0/envelope'

Instance Attribute Summary collapse

Method Summary

Methods included from GOBL::Extensions::EnvelopeHelper

#extract, included

Methods inherited from Object

new

Methods inherited from Struct

#as_json, from_data, from_json!, #to_json

Instance Attribute Details

#$schema($schema) ⇒ String (readonly)

Schema identifies the schema that should be used to understand this document

Returns:

  • (String)


17
# File 'lib/generated/gobl/envelope.rb', line 17

property :$schema, String

#docGOBL::Schema::Object (readonly)

The data inside the envelope



29
# File 'lib/generated/gobl/envelope.rb', line 29

property :doc, GOBL::Schema::Object

#headGOBL::Head::Header (readonly)

Details on what the contents are

Returns:



23
# File 'lib/generated/gobl/envelope.rb', line 23

property :head, GOBL::Head::Header

#sigsArray<GOBL::DSig::Signature> (readonly)

JSON Web Signatures of the header

Returns:



35
# File 'lib/generated/gobl/envelope.rb', line 35

property :sigs, [GOBL::DSig::Signature]